import request from '@/utils/request'

// 查询熔炼质检光谱结果列表
export function listDetectionRl(query) {
  return request({
    url: '/bus/detectionRl/list',
    method: 'get',
    params: query
  })
}

// 查询熔炼质检光谱结果详细
export function getDetectionRl(id) {
  return request({
    url: '/bus/detectionRl/' + id,
    method: 'get'
  })
}

// 新增熔炼质检光谱结果
export function addDetectionRl(data) {
  return request({
    url: '/bus/detectionRl',
    method: 'post',
    data: data
  })
}

// 修改熔炼质检光谱结果
export function updateDetectionRl(data) {
  return request({
    url: '/bus/detectionRl',
    method: 'put',
    data: data
  })
}

// 删除熔炼质检光谱结果
export function delDetectionRl(id) {
  return request({
    url: '/bus/detectionRl/' + id,
    method: 'delete'
  })
}
